<?php
/**
 * 应用程序路由配置
 *
 * Created by PhpStorm.
 * User: libin
 * Date: 2017/9/8
 * Time: 下午2:18
 */
return [
    //注册
    'register' => [
        'method' => 'get',
        'action' => 'UserController@register'
    ],
    'do_register' => [
        'method' => 'post',
        'action' => 'UserController@register'
    ],

    //登录
    'login' => [
    'method' => 'get',
    'action' => 'UserController@login'
    ],
    'do_login' => [
    'method' => 'post',
    'action' => 'UserController@login'
    ],


    //首页
    'index' => [
    'method' => 'get',
    'action' => 'IndexController@index'
    ],
    //用户信息页面
    'profile' => [
        'method' => 'get',
        'action' => 'IndexController@profile'
    ],
    //用户信息编辑页面
    'profileEdit' => [
        'method' => 'get',
        'action' => 'IndexController@profileEdit'
    ],
    'doProfileEdit' => [
        'method' => 'post',
        'action' => 'IndexController@profileEdit'
    ],
    //锁屏界面
    'lock' => [
        'method' => 'get',
        'action' => 'IndexController@lock'
    ],
    'unlock' => [
        'method' => 'post',
        'action' => 'IndexController@unlock'
    ],
    //头像上传
    'uploadPic' => [
        'method' => 'post',
        'action' => 'UserController@uploadPic'
    ],


    //加好友页面
    'addFriends' => [
        'method' => 'get',
        'action' => 'FriendsController@index'
    ],
    'doAddFriends' => [
        'method' => 'get',
        'action' => 'FriendsController@addFriends'
    ],
];